<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<SCRIPT language="JavaScript1.2">
function openwindow()
{
  window.open("http://www.javascript-coder.com","mywindow","menubar=1,resizable=1,width=350,height=250");
}
</SCRIPT>
<div class="list">
<table>
  <tr>
    <th>ID</th>
    <th>No.</th>
    <th>S</th>
    <th>Time</th>
    <th width="300">Content</th>
    <th>Dialogue Act Labels</th>
    <th>Dialogue Acts</th>
    <th></th>
  </tr>
    <c:forEach items="${messages}" var="message">
    <tr>
      <td><c:out value="${message.messageId}" /></td>
      <td><c:out value="${message.sequence}" /></td>
      <td><c:if test="${message.speaker == 1}">
        <font style="color: red">L</font>
      </c:if> <c:if test="${message.speaker == 2}">
        <font style="color: blue">U</font>
      </c:if></td>
      <td><c:out value="${message.time}" /></td>
      <td><c:out escapeXml="false" value="${message.contentString}" /></td>
      <td><c:forEach items="${message.dialogueActLabels}"
        var="dalabel">
        <c:if
          test="${dalabel.dialogueActDimension.dialogueActScheme.scheme=='Inoue'}">
          <c:out value="${dalabel.dialogueActDimension.dimension}" />/<c:out
            value="${dalabel.label}" />
          <br>
        </c:if>
      </c:forEach> <br />
      </td>
      <td>
        <c:forEach items="${message.dialogueActs}" var="da">        
          Function: <c:out value="${da.function.label}" /> 
          <br/>
          Domain: <c:out value="${da.domain.label}" />            
          <br/>
          <!-- Adjacency: <c:out value="${da.adjacency.label}" /> -->
          <br/>            
        </c:forEach> 
      </td>
      <td><c:if test="${message.note != ''}">
        <a title="Note: <c:out value='${message.note}'/>">[note]</a>
        <br>
      </c:if> <a
        href='annotatemessage.html?messageId=<c:out value="${message.messageId}"/>'>[edit]</a>
      </td>
    </tr>
  </c:forEach>
</table>
</div>